export const setToken = payload => {
  localStorage.setItem('hm-news-token', JSON.stringify(payload))
}

export const getToken = () => {
  return JSON.parse(localStorage.getItem('hm-news-token')) || []
}

export const removeToken = () => {
  localStorage.removeItem('hm-news-token')
}
